class Solution {
public:
    vector<int> twoSum(vector<int>& price, int target)
     {
        vector<int> ret;
        int right=price.size()-1;
        for (;price[right]>=target;right--);
        for (int left=0;left<right;left++)
        {
            for (int i=right;i>left;i--)
            {
                if (price[i]+price[left]>target)
                {
                    //什么都不做
                }
                else if (price[i]+price[left]==target)
                {
                    vector<int> ret={price[i],price[left]};
                    return ret;
                }
                else
                {
                    break;
                }
            }
        }
        return ret;
    }
};